{% extends "afcp/base.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/
  
  Curriculum vitae.
  
  Created on 2008-10-28.
  $Id: cv.html 289 2008-12-01 13:40:34Z heavyzheng $
-->
{% endcomment %}

{% load i18n %}

{#------------------------------------------------------------------------------------------------#}

{% block html_head %}

<link rel="stylesheet" type="text/css" media="screen" href="/static/afcp/stylesheets/cv.css"/>
<title>Curriculum Vitae - {{ cv.name }} :: AFCP</title>

<script type="text/javascript">//<![CDATA[

function showCVEditForm(id) {
    $(id + " .section-content"    ).hide();
    $(id + " .section-edit-toggle").hide();
    $(id + " .section-submitting" ).hide();
    $(id + " .section-edit-form"  ).show("slow");
}

function hideCVEditForm(id) {
    $(id + " .section-submitting" ).hide();
    $(id + " .section-edit-form"  ).hide();
    $(id + " .section-content"    ).show("slow");
    $(id + " .section-edit-toggle").show("slow");
}

function submitCVEditForm(id) {
    $(id + " .section-content"    ).hide();
    $(id + " .section-edit-toggle").hide();
    $(id + " .section-edit-form"  ).hide();
    $(id + " .section-submitting" ).show("slow");
    
    var data = $(id + " .section-edit-form").serialize();
    var url  = $(id + " .section-edit-form").attr("action");
    var options = { type    : "POST",
                    url     : url,
                    data    : data,
                    success : function(data) { $(id).after(data).remove(); }
                  };
    $.ajax(options);    
}

//]]></script>

{% endblock %}{# html_head #}

{#------------------------------------------------------------------------------------------------#}

{% block header %}
{% endblock %}{# header #}

{#------------------------------------------------------------------------------------------------#}

{% block sidebar_and_content %}

<div id="cv">

  {% include "afcp/sections/cv_basic_info.html" %}
  {% include "afcp/sections/cv_summary.html" %}
  {% include "afcp/sections/cv_educations.html" %}
  {% include "afcp/sections/cv_experiences.html" %}
  {% include "afcp/sections/cv_languages.html" %}
  {% include "afcp/sections/cv_interests.html" %}
  {% include "afcp/sections/cv_footer.html" %}
  
  <!-- YAML is for debug only. -->
  <div id="cv_yaml">
    <pre>{{ cv.as_xml|escape }}</pre>
  </div>

</div><!--/#cv-->

{% endblock %}{# sidebar_and_content #}



